home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / program / cgrphxdv.lha / CGraphX / C / Include / cybergraphics / cybergraphics.h
C/C++ Source or Header  |  1995-12-16  |  5KB  |  141 lines

  1. #ifndef CYBERGRAPHICS_CYBERGRAPHICS_H
  2. #define CYBERGRAPHICS_CYBERGRAPHICS_H
  3.  
  4. #ifndef UTILITY_TAGITEM_H
  5. #include <utility/tagitem.h>
  6. #endif
  7.  
  8. #ifndef GRAPHICS_DISPLAYINFO_H
  9. #include <graphics/displayinfo.h>
  10. #endif
  11.  
  12. /*                                                          */
  13. /*  Definition of CyberModeNode (Returned in AllocModeList) */
  14. /*                                                          */
  15.  
  16. struct CyberModeNode
  17.  {
  18.   struct Node Node;
  19.   char   ModeText[DISPLAYNAMELEN];
  20.   ULONG  DisplayID;
  21.   USHORT Width;
  22.   USHORT Height;
  23.   USHORT Depth;
  24.   APTR   DisplayTagList;  /* taglist with extended ModeID information */
  25.  };
  26.  
  27. /*                                  */
  28. /* Parameters for GetCyberMapAttr() */
  29. /*                                  */
  30.  
  31. #define CYBRMATTR_XMOD        0x80000001 /* function returns BytesPerRow if its called with this parameter */
  32. #define CYBRMATTR_BPPIX       0x80000002 /* BytesPerPixel shall be returned */
  33. #define CYBRMATTR_DISPADR     0x80000003 /* do not use this ! private tag */
  34. #define CYBRMATTR_PIXFMT      0x80000004 /* the pixel format is returned */
  35. #define CYBRMATTR_WIDTH       0x80000005 /* returns width in pixels */
  36. #define CYBRMATTR_HEIGHT      0x80000006 /* returns height in lines */
  37. #define CYBRMATTR_DEPTH       0x80000007 /* returns bits per pixel */
  38. #define CYBRMATTR_ISCYBERGFX  0x80000008 /* returns -1 if supplied bitmap is a cybergfx one */
  39. #define CYBRMATTR_ISLINEARMEM 0x80000009 /* returns -1 if supplied bitmap is linear accessable */
  40.  
  41. /*                                 */
  42. /* Parameters for GetCyberIDAttr() */
  43. /*                                 */
  44.  
  45. #define CYBRIDATTR_PIXFMT 0x80000001 /* the pixel format is returned */
  46. #define CYBRIDATTR_WIDTH  0x80000002 /* returns visible width in pixels */
  47. #define CYBRIDATTR_HEIGHT 0x80000003 /* returns visible height in lines */
  48. #define CYBRIDATTR_DEPTH  0x80000004 /* returns bits per pixel */
  49. #define CYBRIDATTR_BPPIX  0x80000005 /* BytesPerPixel shall be returned */
  50.  
  51. /*                              */
  52. /* Tags for CyberModeRequest()  */
  53. /*                              */
  54.  
  55. #define CYBRMREQ_TB          (TAG_USER+0x40000)
  56.  
  57. /*            */
  58. /* FilterTags */
  59. /*            */
  60.  
  61. #define CYBRMREQ_MinDepth    CYBRMREQ_TB+0  /* Minimum depth for displayed screenmode */
  62. #define CYBRMREQ_MaxDepth    CYBRMREQ_TB+1  /* Maximum depth  "       "        " */
  63. #define CYBRMREQ_MinWidth    CYBRMREQ_TB+2  /* Minumum width  "       "        " */
  64. #define CYBRMREQ_MaxWidth    CYBRMREQ_TB+3  /* Maximum width  "       "        " */
  65. #define CYBRMREQ_MinHeight   CYBRMREQ_TB+4  /* Minumum height "       "        " */
  66. #define CYBRMREQ_MaxHeight   CYBRMREQ_TB+5  /* Minumum height "       "        " */
  67. #define CYBRMREQ_CModelArray CYBRMREQ_TB+6
  68.  
  69. #define CYBRMREQ_WinTitle    CYBRMREQ_TB+20
  70. #define CYBRMREQ_OKText      CYBRMREQ_TB+21
  71. #define CYBRMREQ_CancelText  CYBRMREQ_TB+22
  72.  
  73. #define CYBRMREQ_Screen      CYBRMREQ_TB+30  /* Screen you wish the Requester to open on */
  74.  
  75. /*                            */
  76. /* Tags for BestCyberModeID() */
  77. /*                            */
  78.  
  79. #define CYBRBIDTG_TB  (TAG_USER+0x50000)
  80.  
  81. /* FilterTags */
  82.  
  83. #define CYBRBIDTG_Depth         CYBRBIDTG_TB+0
  84. #define CYBRBIDTG_NominalWidth  CYBRBIDTG_TB+1
  85. #define CYBRBIDTG_NominalHeight CYBRBIDTG_TB+2
  86. #define CYBRBIDTG_MonitorID     CYBRBIDTG_TB+3
  87.  
  88. /*                                    */
  89. /* definition of divers pixel formats */
  90. /*                                    */
  91.  
  92. #define PIXFMT_LUT8     0
  93. #define PIXFMT_RGB15    1
  94. #define PIXFMT_BGR15    2
  95. #define PIXFMT_RGB15PC  3
  96. #define PIXFMT_BGR15PC  4
  97. #define PIXFMT_RGB16    5
  98. #define PIXFMT_BGR16    6
  99. #define PIXFMT_RGB16PC  7
  100. #define PIXFMT_BGR16PC  8
  101. #define PIXFMT_RGB24    9
  102. #define PIXFMT_BGR24   10
  103. #define PIXFMT_ARGB32  11
  104. #define PIXFMT_BGRA32  12
  105. #define PIXFMT_RGBA32  13
  106.  
  107. /*                                                        */
  108. /* SrcRectangle formats defines for xxxPixelArray calls() */
  109. /*                                                        */
  110.  
  111. #define RECTFMT_RGB   0
  112. #define RECTFMT_RGBA  1
  113. #define RECTFMT_ARGB  2
  114. #define RECTFMT_LUT8  3
  115. #define RECTFMT_GREY8 4
  116.  
  117. /*                                    */
  118. /* Parameters for CVideoCtrlTagList() */
  119. /*                                    */
  120.  
  121. #define SETVC_DPMSLevel  0x88002001
  122.  
  123. #define DPMS_ON      0   /* Full operation                             */
  124. #define DPMS_STANDBY 1   /* Optional state of minimal power reduction  */
  125. #define DPMS_SUSPEND 2   /* Significant reduction of power consumption */
  126. #define DPMS_OFF     3   /* Lowest level of power consumption          */
  127.  
  128. /*                              */
  129. /* Tags for LockBitMapTagList() */
  130. /*                              */
  131.  
  132. #define LBMI_WIDTH       0x84001001
  133. #define LBMI_HEIGHT      0x84001002
  134. #define LBMI_DEPTH       0x84001003
  135. #define LBMI_PIXFMT      0x84001004
  136. #define LBMI_BYTESPERPIX 0x84001005
  137. #define LBMI_BYTESPERROW 0x84001006
  138. #define LBMI_BASEADDRESS 0x84001007
  139.  
  140. #endif
  141.